#ifndef DSPNASM_RELOCATIONITEM_H
#define DSPNASM_RELOCATIONITEM_H

#include <memory>
#include <string>
#include "nasm/elf/elf.h"

struct RelocationItem {
    std::string m_segName;   // 重定位的目标段名
    std::shared_ptr<Elf32_Rel> m_rel;  // 重定位信息
    std::string m_relName; // 重定位符号名

    RelocationItem(const std::string &segName, std::shared_ptr<Elf32_Rel> rel, const std::string &relName) :
            m_segName(segName), m_rel(rel), m_relName(relName) {}

    ~RelocationItem() = default;
};

#endif //DSPNASM_RELOCATIONITEM_H
